cls
@echo off

del .\bin\email.exe

setlocal

if exist run.bat goto ok
echo run.bat must be run from its folder
goto end

:ok

rem SET GOARCH=amd64
rem SET GOOS=linux

SET GOBIN=
SET OLDGOPATH=%GOPATH%
SET GOPATH=%~dp0

gofmt -w src

go install email

:end
echo [FINISHED]
echo.

::cls
rem SET EMAIL_MODE=production
SET EMAIL_MODE=development
SET EMAIL_ACAO=*
.\bin\email.exe --PORT=3003 --PPROF_PORT=6668 --MONITOR_PORT=3346
